﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NotaCreditoListGrid.ascx.cs" 

Inherits="UILGestion.VentaAdmin.OrdenVenta.NotaCreditoListGrid " %>


<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>

<asp:Panel runat="server" ID="PanelRecepcion" >
<asp:DataPager ID="pager" PagedControlID="ListView1" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server" class="ms-crm-List-Header">
            <tr id="Tr1" runat="server">

            
                 

                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="numeroDoc" ForeColor="Blue" runat="server">Numero</asp:LinkButton>
                </th>  
                  
               <th id="Th3" runat="server">
                    <asp:LinkButton ID="LinkButton3" CommandName="Sort" CommandArgument="fechaStr" ForeColor="Blue" runat="server">Fecha</asp:LinkButton>
                </th>      
                
                  <th id="Th9" runat="server">
                    <asp:LinkButton ID="LinkButton7" CommandName="Sort" CommandArgument="nombreCliente" ForeColor="Blue" runat="server">Cliente</asp:LinkButton>
                </th>
                 <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton8" CommandName="Sort" CommandArgument="estadoStr" ForeColor="Blue" runat="server">Estado</asp:LinkButton>
                </th>  
                
              
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="LinkButton2" CommandName="Sort" CommandArgument="totalStr" ForeColor="Blue" runat="server">Total</asp:LinkButton>
                </th>
                   <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="UI" ForeColor="Blue" runat="server">UI REF</asp:LinkButton>
                </th>
                 <th id="Th4" runat="server">
                   
                </th>
                
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#fff":"#eee" %>'>
        

       
           <td width="150px">
               <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"numeroDocStr").ToString()%>'  
                 Target="_self"  ID="Hyperlink1"
                NavigateUrl='<%# "~/VentaAdmin/documentoVenta/documentoVentaReadForm.aspx?id=" + 
                DataBinder.Eval (Container.DataItem,"idInternal").ToString()  +
                "&idProyecto=" + DataBinder.Eval (Container.DataItem,"idProyecto").ToString()
                %>' 
               />   
                <td  align="left" width="70px">
               <%# Eval("fechaStr")%> <br />
            </td>
           
          
           
            
             <td  align="left" width="250px" >
               <%# Eval("nombreCliente")%> <br />
            </td >
                </td>
                <td width="90px">
               <%# Eval("estadoStr")%> <br />
           </td>     
            
            <td align="right" width="100px">
               <%# Eval("totalStr")%> <br />
            </td> 

            <td align="right" width="150px">
               <%# Eval("UIStr")%> <br />
            </td>
            
            <td align="right" width="45px">
               <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                                       CommandArgument='<%# Eval("idInternal")%>' ImageUrl="../../Images/delete.gif" 
                                       OnClick="Deleteitem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                   
            </td> 
                   
           
          
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" >
            <tr>
                <td>
                   <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     